home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / libs / sphigs / sph_srgp.lha / srgp / src / Copy2Mac.doc < prev    next >
Encoding:
Text File  |  1992-01-09  |  1.8 KB  |  44 lines

  1. This document contains information for those who are transferring the SRGP
  2. source code from a UNIX system to a Mac.
  3.  
  4. For information on installing and using SRGP on the Macintosh, consult the file
  5. called "MacSRGP_README" (also found in this directory).
  6.  
  7. ==============================================================================
  8.  
  9.         INFORMATION FOR THOSE COPYING FROM UNIX TO MAC
  10.  
  11. The files which should be transferred to a Mac in order to create the Mac
  12. version of SRGP lie in two directories:
  13.     1) src/srgp
  14.     2) examples
  15.  
  16. In each of those two directories, you'll find a file called
  17. "__mactransfer_filelist", naming all the files in that directory that should be
  18. sent to the Mac.  This file will help you automate the transfer if you know
  19. some basic UNIX/shell tricks.  For instance, if you will use ftp to do the
  20. transfer, you can use the following sed command to create a file containing a
  21. "put" command for each file:
  22.  
  23.     sed 's/^/put /' __mactransfer_filelist  > /tmp/putcmds
  24.     
  25. The resulting file may be fed straight into ftp's stdin, being prepended with a
  26. carriage return (so the first "put" won't be ignored) and appended with a
  27. "quit". 
  28.  
  29. The file containing SRGP's resources (SRGPproject.rsrc.hqx) is in hex format
  30. and (as soon as you've gotten it onto a Mac) it must be converted to binary via
  31. the BinHex program, or the StuffIt program, or any equivalent supporting BinHex
  32. format.
  33.  
  34. Now...  on the Macintosh...
  35.  
  36. Make a folder called "SRGP/SPHIGS Root".  In it, place the resources file. 
  37. You will create project files in here later.
  38.  
  39. In the new "root" folder, make a folder called "MacSRGP".  It should contain
  40. the ".c" and ".h" files found in the "src/srgp/" directory.
  41.  
  42. In the new "MacSRGP" folder, make a folder called "Applications".  In it should
  43. be all files transferred from the "examples/" directory.
  44.